package com.halachawiki.shared;

import java.io.Serializable;
import java.util.List;

public class PublicAuthor implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public String name;
	public List<String> nickNames;
	public String description;
	public ApproxDate birthDate;
	public ApproxDate deathDate;
	public HalachicPeriods period;
	
	public String versionID; // serialized DB version ID of this/prev entry.
	
	public String getPresentableNicknames() { 
		if (nickNames == null) { return ""; }
		return SharedUtil.join(nickNames, ", ");
	}
}
